#往列表中插入一个列表
my_list=[1,2,3,4,5]
my_list[3:3]=['aaa','bbb']
print(my_list)

def list_compare():
    a = [1, 2, 3]
    b = [1, 2, 3]
    print(a == b)
    print(a is b)  # is运算符是判断两个对象的地址是否一致的，一致是True

poem_str="窗前明月光\r 疑是地上霜\r 举头望明月\r\r\n低头思故乡"
print(poem_str)
# 1. 拆分字符串
poem_list = poem_str.split()
print(poem_list)
# 2. 合并字符串
result = " ".join(poem_list)
print(result)
if __name__ == '__main__':
    list_compare()